package stackAndQueue.q2_twoStacksQueue;

/**
 * Project：algorithm
 * Date：2024/6/4
 * Time：19:17
 * Description：测试类
 *
 * @author Cao Jiwen
 * @version 1.0
 */
public class TestMain {
    public static void main(String[] args) {
        TwoStacksQueue queue = new TwoStacksQueue();

        queue.add(1);
        queue.add(2);
        queue.add(3);
        queue.add(4);
        queue.add(5);

        System.out.println(queue.pop());
        System.out.println(queue.pop());
        System.out.println(queue.pop());
        System.out.println(queue.pop());
        System.out.println(queue.pop());
    }
}
